package com.ujiuye;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 施立璇
 * @version 1.0
 * @description: TODO
 * @date 2021/6/6 22:41
 */
public class Demo3 {

    public static void main(String[] args) {
        int count = 0;
        List list = new ArrayList();
        try {
            while (true){
                byte[] bytes = new byte[1024*1024];
                list.add(bytes);
                count++;
            }
        } catch (Error e) {
            System.out.println(count);
            e.printStackTrace();
        }
    }


}
